
using QdbUnit;
using QdbUnit.Extensions;
using QdbUnit.Extensions.Fixtures;
using Qdb.Internal;

namespace Qdb.Tests.Common.Assorted
{
	public class ChangeIdentity : AbstractQdbTestCase, IOptOutMultiSession
	{
		/// <exception cref="System.Exception"></exception>
		public virtual void Test()
		{
			byte[] oldSignature = Db().Identity().GetSignature();
			((LocalObjectContainer)Db()).GenerateNewIdentity();
			Reopen();
			ArrayAssert.AreNotEqual(oldSignature, Db().Identity().GetSignature());
		}
	}
}
